<template>
  <div id="app">
    <header>
      <Sidebar />
    </header>
    <div class="main-content">
      <router-view />
    </div>
  </div>
</template>

<script setup>
import Sidebar from './layout/sidebar.vue';
</script>

<style scoped>
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw; /* 确保容器宽度为100%视口宽度 */
}

header {
  width: 100%;
}

.main-content {
  flex-grow: 1;
  padding: 20px;
  overflow: hidden; /* 禁用滚动条 */
  width: 100%; /* 确保内容宽度为100%父容器宽度 */
  box-sizing: border-box;
}
</style>
